import vue from "@vitejs/plugin-vue";
import { defineConfig } from "wxt";

// See https://wxt.dev/api/config.html
export default defineConfig({
    manifest: {
        name: "cloud-bookmark",
        description: "自己搭建的网址收藏，带隐藏私人收藏功能。服务器端代码：https://gitee.com/jonetwelve/webstack。可以快速收藏网站到自己的服务器，可在新标签看到自己的网址导航",
        action: {},
        host_permissions: ["<all_urls>"],
        permissions: ["storage", "tabs"],
        browser_specific_settings: { gecko: { id: "cloud-bookmark@jone" } },
        version: "1.4",
    },
    imports: {
        addons: {
            vueTemplate: true,
        },
    },
    vite: () => ({
        plugins: [vue()],
        build: {
            // Enabling sourcemaps with Vue during development is known to cause problems with Vue
            sourcemap: false,
        },
    }),
});
